programs.fish.functions.<name>.onProcessExit

Tells fish to run this function when the fish child process with the specified process ID exits. Instead of a PID, for backwards compatibility, %self can be specified as an alias for $fish_pid, and the function will be run when the current fish instance exits.

Type
null or string or signed integer
Default
null
Example
"$fish_pid"